import random
dic = {i:0 for i in range(10)}

ls = [random.randint(1,100) for i in range(10)]
print(ls)
for num in ls:
    gewei = num%10
    dic[gewei]+=1

for k in dic:
    print(f"个位是{k}的个数是{dic[k]}")